package com.lxn.until

import java.util.ResourceBundle

object MyPropertyUtils {

  //首先，有这样一个对象可以获取我们的配置
  private val bundle: ResourceBundle = ResourceBundle.getBundle("config");

  def apply(ProKey: String): String = {
    bundle.getString(ProKey)
  }

  def main(args: Array[String]): Unit = {
    println(MyPropertyUtils("kafka.bootstrap-server"))
  }

}
